import json
import jieba as jb

with open('./raw/o2.txt','r',encoding='utf8') as f:
    text=f.readlines()

text=[_cell.replace('\n','')for _cell in text if _cell!='' and _cell!='\n']

text=[jb.lcut(_cell) for _cell in text]

with open('./data/cutted.json','w+',encoding='utf8') as f:
    f.write(json.dumps(text,ensure_ascii=False))